'use server'
import { NextRequest,NextResponse } from "next/server";
import pool from "@/lib/db";
export async function GET(request: NextRequest) {
 //根据colum 列中的数据'姚乐姚 查询数据
  //  const result = await pool.query('SELECT * FROM xiaolu WHERE colum = $1', ['谭客户']);
  const result = await pool.query('SELECT * FROM xiaolu WHERE colum = $1', ['姚乐姚']);
  return NextResponse.json(result.rows);
}